package com.common.model.exception;

/**
 * 描述：
 * 常用自定义错误
 * @author xianggj
 * @Date 2021/8/27 17:28
 **/
public enum CustomServiceError {

    NOT_FOUND_ERROR(404, "目标未找到！"),
    SYS_ERROR(500, "系统错误！");

    private int code;
    private String message;

    private CustomServiceError(int code, String message) {
        this.code= code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
